package cn.tedu.sp04.order.feign;


import com.tedu.sp01.pojo.Item;
import com.tedu.web.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;
@FeignClient(name = "item-service",fallback = ItemServiceFB.class)
public interface ItemFeignClient {
    @GetMapping("/{orderId}")
    JsonResult<List<Item>> getItems(String orderId);
    @PostMapping("/decreaseNumber")
    JsonResult decreaseNumber(List<Item> items);

}
